public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree=new BinaryTree();
        BinaryTree.TreeNode root=binaryTree.createTree();
        binaryTree.preOrder(root);
        System.out.println();
        binaryTree.inOrder(root);
        System.out.println();
        binaryTree.postOrder(root);
        System.out.println();
        binaryTree.size(root);
//        System.out.println("结点个数"+BinaryTree.nodeSize);
//        System.out.println(binaryTree.size2(root));
//        binaryTree.getLeafNodeCount1(root);
//        System.out.println(BinaryTree.leafSize);
//        System.out.println(binaryTree.getLeafNodeCount2(root));
//        System.out.println("第二层结点"+binaryTree.getKLevelNodeCount(root, 2));
//        System.out.println("树的高"+binaryTree.getHeight(root));
//        BinaryTree.TreeNode ret2 = binaryTree.find(root,'d');
//        System.out.println(ret2.val);
        binaryTree.levelOrder(root);
        System.out.println(binaryTree.isCompleteTree(root));
        binaryTree.postOrder(root);
        System.out.println();
        binaryTree.postOrderNor(root);
    }
}
